package com.test;

public class Ex1231_03_fac {
	int a;
	int sum;
	String str;
	public void fac(int a){
		this.a = a;
		sum=1;
		str="";
		for (int i = this.a; i >= 1; i--) {
			sum = sum * i;
		}		
		
	}
	
	public String toString(){		
		for (int i = a; i >= 1; i--) {
			if (i!=1) {
				str = str +i+"*";
			}else{
			str = str +i;
			}
		}		
		return (a+"!=" + sum+" : " + str);
		
	}

}
